package com.link.play.fit.ai.ui.scanFood

import android.os.Bundle
import androidx.activity.addCallback
import com.link.play.fit.ai.base.BaseActivity
import com.link.play.fit.ai.base.goToAc
import com.link.play.fit.ai.databinding.AcScanGuideBinding

class ScanGuideAc : BaseActivity<AcScanGuideBinding>(AcScanGuideBinding::inflate) {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        onBackPressedDispatcher.addCallback { }

        binding.ivClose.setOnClickListener {
            jump()
        }
        binding.tvBtn.setOnClickListener {
            jump()
        }

    }

    private fun jump() {
        goToAc(ScanFoodAc::class.java)
        finish()
    }

}